{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "3f7cd2d5",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Yep\n",
      "Nel\n",
      "Yep\n",
      "Nel\n",
      "Yep\n",
      "Nel\n",
      "Yep\n",
      "Nel\n"
     ]
    }
   ],
   "source": [
    "class Ave:\n",
    "    def vuela(self):\n",
    "        print(\"Yep\")\n",
    "    def nada(self):\n",
    "        print(\"Nel\")\n",
    "        \n",
    "class Pingüino(Ave):\n",
    "    def __init__(self):\n",
    "        super().__init__()\n",
    "    def vuela(self):\n",
    "        print(\"Nel\")\n",
    "    def nada(self):\n",
    "        print(\"Yep\")\n",
    "    def corre(self):\n",
    "        print(\"Yep\")\n",
    "    \n",
    "\n",
    "class Paloma(Ave):\n",
    "    def __init__(self):\n",
    "        super().__init__()\n",
    "    def corre(self):\n",
    "        print(\"Nel\")\n",
    "\n",
    "class Ave_Misteriosa():\n",
    "    def __init__(self,ave):\n",
    "        self.ave = ave\n",
    "    def vuela(self):\n",
    "        self.ave.vuela()\n",
    "    def nada(self):\n",
    "        self.ave.nada()\n",
    "    def corre(self):\n",
    "        self.ave.corre()    \n",
    "        \n",
    "paloma = Paloma()\n",
    "pingu = Pingüino()\n",
    "pajaro = Ave()\n",
    "\n",
    "ave_misteriosa1 = Ave_Misteriosa(pajaro)\n",
    "ave_misteriosa2 = Ave_Misteriosa(pingu)\n",
    "ave_misteriosa3 = Ave_Misteriosa(paloma)\n",
    "\n",
    "ave_misteriosa1.vuela()\n",
    "ave_misteriosa2.vuela()\n",
    "ave_misteriosa3.vuela()\n",
    "ave_misteriosa1.nada()\n",
    "ave_misteriosa2.nada()\n",
    "ave_misteriosa3.nada()\n",
    "ave_misteriosa2.corre()\n",
    "ave_misteriosa3.corre()\n",
    "\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3dcaf70e",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "13df320c",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
